package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.CaseInfo;
import cn.wolfcode.crm.domain.InsureInfo;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InsureInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(InsureInfo record);

    InsureInfo selectByPrimaryKey(Long id);

    List<InsureInfo> selectAll();

    int updateByPrimaryKey(InsureInfo record);

    int queryCount(QueryObject qo);

    List<InsureInfo> queryList(QueryObject qo);

    void changeState(InsureInfo info);

    void amend(InsureInfo info);

    void audit(InsureInfo info);

    InsureInfo getBySn(@Param("insureInfoSn") String insureInfoSn,
                       @Param("carNum") String carNum);


    List<InsureInfo> listAllForClaimsClientDetails();

    void pay(InsureInfo entity);
}